<?php

namespace App\Http\Requests\Common\Captcha;
use App\Http\Requests\Request;


class EmailSendRequest extends Request {
    public function authorize(){
        return true;
    }
    public function rules(){
        return [
            'code' => 'required|captcha',
            'email' => 'required|email'

        ];
    }
    public function messages(){
        return [
            'code.required' =>'验证码不能为空！',
            'code.captcha' => '验证码错误，请重新输入！',
            'email.required' => '邮箱不能为空！',
            'email.email' => '请输入一个正确的邮箱！'
        ];
    }
}